<?php

use Cekurte\Form;

class Application_Form_Task extends Form
{
	public function setup()
    {
        $name    			= new \Zend_Form_Element_Text('name', array(
            'label'     	=> 'form.default.task.label.name', 
            'class'     	=> 'input',
			
        	'required' 		=> true,
			
			'filters'       => array('StringTrim', 'StripTags'),
			
			'validators'    => array('NotEmpty')
        ));
        
        $description 		= new \Zend_Form_Element_Textarea('description', array(
            'label'     	=> 'form.default.task.label.description', 
            'class'     	=> 'input',
			
			'required' 		=> false,
			
			'filters'       => array('StringTrim', 'StripTags'),
        
        	'cols'			=> 40,
        	'rows'			=> 5,
        ));

        $this->addElements( array(
        	$name,
        	$description
        ));
    }
}

